package com.thb.pay.manage.web.merchant;


import com.thb.pay.api.merchant.MchAgentpayRecordServiceApi;
import com.thb.pay.api.merchant.vo.req.MchAgentpayRecordPageReq;
import com.thb.pay.api.merchant.vo.resp.MchAgentpayRecordVo;
import com.thb.pay.core.utils.PageResult;
import com.thb.pay.core.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 代付-记录表 前端控制器
 * </p>
 *
 * @author lucky
 * @since 2019-07-21
 */
@RestController
@RequestMapping("/api/sys/mchAgentpayRecord")
public class MchAgentpayRecordController {

    @Autowired
    private MchAgentpayRecordServiceApi mchAgentpayRecordServiceApi;

    @PostMapping("/list")
    public R list(@RequestBody MchAgentpayRecordPageReq pageReq) {
        PageResult<MchAgentpayRecordVo> pageResult = mchAgentpayRecordServiceApi.findPage(pageReq);
        return R.okData(pageResult);
    }
}
